//
//  NetWorkManager.h
//  IPDirectConnection
//
//  Created by lianglibao on 2019/4/20.
//  Copyright © 2019 lianglibao. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AFNetworking/AFNetworking.h>
#import "AppMetaModel.h"

NS_ASSUME_NONNULL_BEGIN

@interface NetWorkManager : NSObject
@property (nonatomic, strong, readonly) AFHTTPSessionManager *manager;

+ (instancetype)shareInstance;

- (void)NetGET:(NSString *)path
	parameters:(nullable id)parameters
	   success:(nullable void (^)(NSURLSessionDataTask *task, id _Nullable responseObject))success
	   failure:(nullable void (^)(NSURLSessionDataTask * _Nullable task, NSError *error))failure;

- (void)NetPOST:(NSString *)URLString
	 parameters:(nullable id)parameters
		success:(nullable void (^)(NSURLSessionDataTask *task, id responseObject))success
		failure:(nullable void (^)(NSURLSessionDataTask * __nullable task, NSError *error))failure;
@end

NS_ASSUME_NONNULL_END
